<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Data Structures for Sets and Graphs: graphs/WGraphs.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Data Structures for Sets and Graphs
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_014563f092b9a36e69e485d819dd177d.html">graphs</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">WGraphs.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="WGraphs_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#ifndef WGRAPH_H_</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define WGRAPH_H_</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;cstdio&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;math.h&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;OrderedSet.h&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="OrderedBinaryRelation_8h.html">OrderedBinaryRelation.h</a>&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="BitTools_8h.html">BitTools.h</a>&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Graph_8h.html" title="A data structure representing a Simple Graph.">Graph.h</a>&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;Graphs.h&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">/*!*</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * \class Weight</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * \brief This class represents the weights in a weighted graph.</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * The objects of this class represents the weights in a weight graph.</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * The weights can be given to vertexes and/or edges.</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> * This class also implements a unitary weight for all graph as pattern.</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> * \tparam the type of the weight.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> * */</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> W=<span class="keywordtype">int</span>&gt;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="classWeight.html">   35</a></span>&#160;<span class="keyword">class </span><a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight</a> {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="classWeight.html#aab738a6d4cfea89917de777c6c06f892">   44</a></span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classWeight.html#aab738a6d4cfea89917de777c6c06f892" title="The simple constructor.">~Weight</a>() {};</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keyword">virtual</span> W <a class="code" href="classWeight.html#a95b54a5c062254425d9eb9d5e0f0e25e" title="The weight associate to a specified vertex.">weight</a>(<span class="keywordtype">long</span> i);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keyword">virtual</span> W <a class="code" href="classWeight.html#a95b54a5c062254425d9eb9d5e0f0e25e" title="The weight associate to a specified vertex.">weight</a>(<span class="keywordtype">long</span> i, <span class="keywordtype">long</span> j);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keyword">virtual</span> W* <a class="code" href="classWeight.html#a86bf44c26decd0be09e83452f4f652e8" title="Retrieve the weights of a set of vertexes.">toarray</a>(<span class="keywordtype">long</span> begin, <span class="keywordtype">long</span> end);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <span class="keyword">virtual</span> W**     <a class="code" href="classWeight.html#a86bf44c26decd0be09e83452f4f652e8" title="Retrieve the weights of a set of vertexes.">toarray</a>(<span class="keywordtype">long</span> rbegin, <span class="keywordtype">long</span> cbegin, <span class="keywordtype">long</span> rend, <span class="keywordtype">long</span> cend);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;};</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="classWeight.html#ad8da174c920f336fcc40648458448249">  103</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classWeight.html#a95b54a5c062254425d9eb9d5e0f0e25e" title="The weight associate to a specified vertex.">Weight&lt;int&gt;::weight</a>(<span class="keywordtype">long</span> i) {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;}</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="classWeight.html#ac009c4efd33201c2a204ddd16bc641fc">  108</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classWeight.html#a95b54a5c062254425d9eb9d5e0f0e25e" title="The weight associate to a specified vertex.">Weight&lt;int&gt;::weight</a>(<span class="keywordtype">long</span> i, <span class="keywordtype">long</span> j) {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;}</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="classWeight.html#a838de25ca7aed5203e94a1dd75b99a66">  113</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classWeight.html#a95b54a5c062254425d9eb9d5e0f0e25e" title="The weight associate to a specified vertex.">Weight&lt;long&gt;::weight</a>(<span class="keywordtype">long</span> i) {</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;}</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="classWeight.html#abc75a0d6b7e3dc033510fb4e0e47c182">  118</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classWeight.html#a95b54a5c062254425d9eb9d5e0f0e25e" title="The weight associate to a specified vertex.">Weight&lt;long&gt;::weight</a>(<span class="keywordtype">long</span> i, <span class="keywordtype">long</span> j) {</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;}</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="classWeight.html#aa4b5a4f02a2988c7a0cbaa2a700c808e">  123</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="classWeight.html#a95b54a5c062254425d9eb9d5e0f0e25e" title="The weight associate to a specified vertex.">Weight&lt;double&gt;::weight</a>(<span class="keywordtype">long</span> i) {</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keywordflow">return</span> 1.0;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;}</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="keyword">template</span> &lt;&gt;</div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="classWeight.html#a167b425adb9bd6bfa8728f134557a641">  128</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="classWeight.html#a95b54a5c062254425d9eb9d5e0f0e25e" title="The weight associate to a specified vertex.">Weight&lt;double&gt;::weight</a>(<span class="keywordtype">long</span> i, <span class="keywordtype">long</span> j) {</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        <span class="keywordflow">return</span> 1.0;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> W&gt;</div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="code" href="classWeight.html#a86bf44c26decd0be09e83452f4f652e8">  133</a></span>&#160;<span class="keyword">inline</span> W* <a class="code" href="classWeight.html#a86bf44c26decd0be09e83452f4f652e8" title="Retrieve the weights of a set of vertexes.">Weight&lt;W&gt;::toarray</a>(<span class="keywordtype">long</span> begin, <span class="keywordtype">long</span> end) {</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;}</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> W&gt;</div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="classWeight.html#aef04cd55d44c194ed5c9c4da748972e9">  138</a></span>&#160;<span class="keyword">inline</span> W** <a class="code" href="classWeight.html#a86bf44c26decd0be09e83452f4f652e8" title="Retrieve the weights of a set of vertexes.">Weight&lt;W&gt;::toarray</a>(<span class="keywordtype">long</span> rbegin, <span class="keywordtype">long</span> cbegin, <span class="keywordtype">long</span> rend, <span class="keywordtype">long</span> cend) {</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> W , <span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="code" href="classWGraphs.html">  148</a></span>&#160;<span class="keyword">class </span><a class="code" href="classWGraphs.html" title="Represents a collection of algorithms for weighted graphs.">WGraphs</a>{</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#ac663cc1de9d90105a0e6c3a5f6c36537">greedyCoverSort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory, <span class="keywordtype">long</span>* R, <span class="keywordtype">long</span> r);</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a9caeee74299cc41c6227358bd22d2a3f">dsaturCoverSort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory, <span class="keywordtype">long</span>* R, <span class="keywordtype">long</span> r);</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a59dea5dcab9aaf9bb355e0c1c4576275">mcrCoverSort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a0af36d558750017663bbc6e28589d506">greedySort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory, <span class="keywordtype">long</span>* R, <span class="keywordtype">long</span> r, <span class="keywordtype">long</span>** Ro);</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a88a13c7bbcd262035f44e82490449fbc">dsaturSort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory, <span class="keywordtype">long</span>* R, <span class="keywordtype">long</span> r, <span class="keywordtype">long</span>** Ro);</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a0cdfe4e8a5f650a5ab9533bb7f1041cc">mcrSort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory, <span class="keywordtype">long</span>* R, <span class="keywordtype">long</span> r, <span class="keywordtype">long</span>** Ro);</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a215341a0088c1fc257a7624d41a58855">readDimacsGraph</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, FILE * graphFile, <a class="code" href="Graph_8h.html#aa2142693629eb28bcfd13af8886f2786" title="the type of the graph">graphType</a> t, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory);</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;};</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> W, <span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00285"></a><span class="lineno"><a class="code" href="classWGraphs.html#ac663cc1de9d90105a0e6c3a5f6c36537">  285</a></span>&#160;<span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#ac663cc1de9d90105a0e6c3a5f6c36537">WGraphs&lt;W,T&gt;::greedyCoverSort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory, <span class="keywordtype">long</span>* R, <span class="keywordtype">long</span> r){</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        <span class="comment">//TODO</span></div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;}</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> W, <span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00291"></a><span class="lineno"><a class="code" href="classWGraphs.html#a9caeee74299cc41c6227358bd22d2a3f">  291</a></span>&#160;<span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a9caeee74299cc41c6227358bd22d2a3f">WGraphs&lt;W,T&gt;::dsaturCoverSort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory, <span class="keywordtype">long</span>* R, <span class="keywordtype">long</span> r){</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        <span class="comment">//TODO</span></div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;}</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> W, <span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00297"></a><span class="lineno"><a class="code" href="classWGraphs.html#a59dea5dcab9aaf9bb355e0c1c4576275">  297</a></span>&#160;<span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a59dea5dcab9aaf9bb355e0c1c4576275">WGraphs&lt;W,T&gt;::mcrCoverSort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory){</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        <span class="comment">//TODO</span></div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;}</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> W, <span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00303"></a><span class="lineno"><a class="code" href="classWGraphs.html#a0af36d558750017663bbc6e28589d506">  303</a></span>&#160;<span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a0af36d558750017663bbc6e28589d506">WGraphs&lt;W,T&gt;::greedySort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory, <span class="keywordtype">long</span>* R, <span class="keywordtype">long</span> r, <span class="keywordtype">long</span>** Ro){</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <span class="comment">//TODO</span></div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;}</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> W, <span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00309"></a><span class="lineno"><a class="code" href="classWGraphs.html#a88a13c7bbcd262035f44e82490449fbc">  309</a></span>&#160;<span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a88a13c7bbcd262035f44e82490449fbc">WGraphs&lt;W,T&gt;::dsaturSort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory, <span class="keywordtype">long</span>* R, <span class="keywordtype">long</span> r, <span class="keywordtype">long</span>** Ro){</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;        <span class="comment">//TODO</span></div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;}</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> W, <span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00315"></a><span class="lineno"><a class="code" href="classWGraphs.html#a0cdfe4e8a5f650a5ab9533bb7f1041cc">  315</a></span>&#160;<span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a0cdfe4e8a5f650a5ab9533bb7f1041cc">WGraphs&lt;W,T&gt;::mcrSort</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, <span class="keywordtype">long</span>** cover, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory, <span class="keywordtype">long</span>* R, <span class="keywordtype">long</span> r, <span class="keywordtype">long</span>** Ro){</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        <span class="comment">//TODO</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;}</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> W, <span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00321"></a><span class="lineno"><a class="code" href="classWGraphs.html#a215341a0088c1fc257a7624d41a58855">  321</a></span>&#160;<span class="keywordtype">long</span> <a class="code" href="classWGraphs.html#a215341a0088c1fc257a7624d41a58855">WGraphs&lt;W,T&gt;::readDimacsGraph</a>(<a class="code" href="classGraph.html">Graph&lt;T&gt;</a>* g, <a class="code" href="classWeight.html" title="This class represents the weights in a weighted graph.">Weight&lt;W&gt;</a>* w, FILE * graphFile, <a class="code" href="Graph_8h.html#aa2142693629eb28bcfd13af8886f2786" title="the type of the graph">graphType</a> t, <a class="code" href="classDirectlyAddressedSetFactory.html">DirectlyAddressedSetFactory&lt;long&gt;</a>* factory){</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        <span class="comment">//TODO</span></div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;}</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* WGRAPH_H_ */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Nov 26 2012 17:06:45 for Data Structures for Sets and Graphs by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
